package com.e2oto.seller.modules.seller.adapter;

import android.widget.TextView;

import com.e2oto.seller.R;
import com.e2oto.seller.common.base.RecycleViewAdapter;
import com.e2oto.seller.common.base.RecycleViewHolder;
import com.e2oto.seller.modules.seller.bean.CategoryBean;

import java.util.List;

/**
 * Created by ZhangLiQiang on 2017/11/7.
 */

public class GoodsCategoryAdapter extends RecycleViewAdapter<CategoryBean> {

    public GoodsCategoryAdapter(List<CategoryBean> dataList) {
        super(dataList);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_goods_category;
    }

    @Override
    public void convert(RecycleViewHolder holder, CategoryBean categoryBean, int position) {
        TextView categoryName = (TextView) holder.getView(R.id.item_goods_category_name);
        categoryName.setText(categoryBean.getName());

    }
}
